package br.com.news.utils.service.interfaces;

import java.util.List;

import br.com.news.utils.database.beans.NoticiaBean;
import br.com.news.utils.service.exception.ServiceException;

public interface INoticiaService {

	List<NoticiaBean> findAll() throws ServiceException;

	Long save(NoticiaBean noticiaBean) throws ServiceException;
	
	void update(NoticiaBean noticiaBean) throws ServiceException;

	boolean existeNoticia(NoticiaBean noticiaBean);
	
	List<NoticiaBean> lastNews(int qntNoticias,long idNoticia, long idCategoria) throws ServiceException;
	
	List<NoticiaBean> lastNews(long idNoticia, long idCategoria) throws ServiceException;

	NoticiaBean findNoticiaById(Long id) throws ServiceException;
	
	NoticiaBean findImageByIdNoticia(Long idNoticia) throws ServiceException;

	Long quantidadePaginas(long idCategoria);

	List<NoticiaBean> findNoticiasPorPagina(int linha, Long idCategoria,int quantidade);

	List<NoticiaBean> buscaNoticiaPorNome(String nome);
	
	List<NoticiaBean> findByExample(NoticiaBean noticiaBean);
	
	String returnTextNew(long idNoticia) throws ServiceException;

}
